;(function(FormBase) {
    FormBase.Mobile = FormBase.extend({
        msgObj: { // error msg
            PHONE_11: "手机号码为11位数字",
            ERROR_PHONE: "请输入正确的手机号码"
        },
        susFun: function() {},
        errFun: function() {},
        checkForm: function() {
            //验证手机号
            var regNum = /^[1-9]\d{10}$/;
            var regNum1 = /[^\d.]/; //非数字
            
            var t1;
            if (regNum1.test(this.newValue)) {
                return {
                    status: true,
                    msg: this.getMsg("PHONE_11"),
                    value: this.newValue.substring(0, this.newValue.length - 1)
                }
            }
            if (regNum.test(this.newValue)) {
                return {
                    status: true,
                    msg: null,
                    value: this.newValue
                }
            }            
            return {
                status: false,
                msg: this.getMsg("PHONE_11"),
                value: this.newValue
            }
        }
    });
})(window.FormBase = window.FormBase || {})
